import VueRouter from 'vue-router'
Vue.use(VueRouter)
import Vue from 'vue'
import Home from './views/home.vue'
import About from './views/about.vue'
import Information from './views/information.vue'
import Access from './views/access.vue'
import Contact from './views/contact.vue'
const router=new VueRouter({
    routes:[
        {
            path:'/',
            redirect:'/home'
        },
        {
            path:'/home',
            name:'首页',
            component:Home
        },
        {
            path:'/about',
            name:'About',
            component:About
        },
        {
            path:'/information',
            name:'Information',
            component:Information
        },
        {
            path:'/access',
            name:'Access',
            component:Access
        },
        {
            path:'/contact',
            name:'Contact',
            component:Contact
        },
    ]
})
export default router